package ZiJieStream.FileOutStream.bytewrite;

import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day24\\a.txt");
//        fos.write(97);
//        fos.write(98);
//
        byte[] bytes = {97, 98, 99, 100};
//        fos.write(bytes);
        fos.write(bytes, 1, 2);
        fos.close();
    }
}
